package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class WindowFramePreceding implements WindowFrameStart {

    private int beginIndex;
    private int endIndex;
    private UnsignedValueSpecification unsignedValueSpecification;

    public WindowFramePreceding(int endIndex, UnsignedValueSpecification unsignedValueSpecification) {
        this.beginIndex = unsignedValueSpecification.getBeginIndex();
        this.endIndex = endIndex;
        this.unsignedValueSpecification = unsignedValueSpecification;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public UnsignedValueSpecification getUnsignedValueSpecification() {
        return unsignedValueSpecification;
    }

}
